/*
 * @Author: lihaogn
 * @Date: 2023-04-25 00:16:00
 * @LastEditTime: 2023-04-25 00:16:05
 * @LastEditor: lihaogn
 * @Description:
 * @FilePath: \lix-practice-css\霓虹灯文本效果\script.js
 */

function glitchRight() {
  var tl = new TimelineMax();
  tl.staggerFrom(".right", 3, { xPercent: 102, ease: Sine.easeInOut }, 0.1);
  return tl;
}

function glitchLeft() {
  var tl = new TimelineMax();
  tl.staggerFrom(".left", 3, { xPercent: -102, ease: Sine.easeInOut }, 0.1);
  return tl;
}

var timeline = new TimelineMax({ repeat: -1, yoyo: true }).addLabel("start", 0).add([glitchLeft(), glitchRight()]);
